package com.abu.aclms.service.impl;

import com.abu.aclms.pojo.PermissionVo;
import com.abu.aclms.pojo.Permission;
import com.abu.aclms.mapper.PermissionMapper;
import com.abu.aclms.service.PermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 权限 服务实现类
 * </p>
 *
 * @author 阿布
 * @since 2020-06-27
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<PermissionVo> queryAllPermission(String pid) {
        return permissionMapper.queryAllPermissionByPid(pid);
    }
}
